import { defineStore } from 'pinia'

export const useLayoutStore = defineStore('layout', {
  state: () => {
    return {
      collapsed: false, // 是否折叠左侧菜单
    }
  },
  actions: {
    // 展开与折叠左侧菜单
    toggleCollapsed() {
      this.collapsed = !this.collapsed
    },
  },
})
